<template>
<h1>杨硕被绑架了事件绑定指令</h1>
  <button @click="f">按钮1</button>
  <button v-on:click="f">按钮2</button>
  <h3>敲回车事件</h3>
  <input type="text" placeholder="请输入杨硕想输入的商品" @keydown.enter="f2">
</template>


<script setup>
const  f=()=>{
  console.log('戳戳杨硕的头');
}
const f2 =()=>{
  console.log('杨硕即将搜索:',);
}
</script>


<style scoped>

</style>